package com.dlc.shop.systemtest.api.order;


import com.alibaba.fastjson.JSON;
import com.dlc.shop.bean.model.ShopWalletLog;
import com.dlc.shop.systemtest.constants.Constant;
import com.dlc.shop.systemtest.util.HttpUtil;

import java.util.List;

/**
 * @author Tu
 */
public class SettlementApi {
    public static List<ShopWalletLog> infoSettlement(String orderNumber, String refundSn){
        String url = Constant.SHOP_URL+"/shop/shopWalletLog/page?ioType=&amountType=&orderNumber="+orderNumber+
                "&refundSn="+refundSn+"&reason=&startTime=&endTime=&current=1&size=10";
        return JSON.parseArray(HttpUtil.gets(url), ShopWalletLog.class);
    }
}
